public with sharing class MySecondController {

    public Account getAccount() {
        ID i = System.currentPageReference().getParameters().get('id');
        if(i==null){
            return [select id, name, industry from Account limit 1];
        }else{
            return [select id, name, industry from Account where id = :i];
        }
    }

    public String getName() {
        return 'コントローラ';
    }

}